package com.atguigu.eduservice.client;


import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient( name="service-vod",fallback =VodClientShiXian.class)
@Component
public interface VodClient {

    //定义调用方法路径
    //根据视频id删除阿里云视频
    @DeleteMapping("/eduvod/video/deleteAliyunVod/{id}")
    public R deleteAliyunVod(@PathVariable("id") String id);

    //定义删除多个视频的方法
    @DeleteMapping("/eduvod/video/deleteDuoAliyunVod")
    public R deleteDuoAliyunVod(@RequestParam("videoIdList") List<String> videoIdList);
}
